package com.springtest;

import java.util.concurrent.atomic.AtomicLong;

/**
 * 测试类
 *
 * @author yisl
 * @create 2019-07-03 15:08
 */
public class Test {

    public static int HH = 123;

    private static volatile int val = 0;

    public String returnHH(){
        return "hello";
    }

    public static void main(String[] args) throws InterruptedException {

        for (int i = 0; i < 10; i++) {
            Thread thread = new myThread();
            thread.start();
        }

        //Thread.sleep(10000);
        //System.out.println(val);

    }

    static class myThread extends Thread{
        @Override
        public void run() {

            for (int i = 0; i < 10; i++) {

                System.out.println(i);


            }
            System.out.println("done");

        }
    }
}
